<template>
<h1>分栏布局组件</h1>
  <el-row :gutter="20">
   <el-col :span="6">测试数据</el-col>
   <el-col :span="6" style="border: 2px solid #f00  ">测试数据</el-col>
   <el-col :span="6">测试数据</el-col>
   <el-col :span="6" style="border: 2px solid #f00">测试数据</el-col>
  </el-row>
  <el-row :gutter="10">
   <el-col :span="12"><img src="../../public/2024.png" style="width: 100%;" ></el-col>
   <el-col :span="12"><img src="../../public/2024.png" style="width: 100%;" ></el-col>
  </el-row>
  <hr>
  <el-row :gutter="10">
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
  </el-row>
  <hr>
  <h3>三张图 1:2:3</h3>
  <el-row :gutter="10">
   <el-col :span="4"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="8"><img src="../../public/2024.png" style="width: 100%;"></el-col>
   <el-col :span="12"><img src="../../public/2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>1 2 3 4 5 6 7 8</h3>
  <el-row :gutter="10">
    <el-col :span="3">1</el-col>
    <el-col :span="3">2</el-col>
    <el-col :span="3">3</el-col>
    <el-col :span="3">4</el-col>
    <el-col :span="3">5</el-col>
    <el-col :span="3">6</el-col>
    <el-col :span="3">7</el-col>
    <el-col :span="3">8</el-col>
  </el-row>
  <h3>简便方法</h3>
  <el-row :gutter="10">
   <el-col :span="3" v-for="item in 8">{{item}}</el-col>
  </el-row>

  <h3>列偏移</h3>
  <el-row :gutter="10">
   <el-col :span="20" :offset="2">
     <img src="../../public/2024.png"  style="width: 100%;">
   </el-col>
  </el-row>
  <hr>
  <h3>12列且居中</h3>
  <el-row :gutter="10">
    <el-col :span="12" :offset="6">
      <img src="../../public/2024.png"  style="width: 100%;">
    </el-col>
  </el-row>
  <hr>
  <h3>布局嵌套</h3>
  <el-row :gutter="10">
   <el-col :span="12">左侧</el-col>
   <el-col :span="12">
         <el-row :gutter="10">
          <el-col :span="8">1</el-col>
          <el-col :span="8">2</el-col>
          <el-col :span="8">3</el-col>
         </el-row>
   </el-col>
  </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>